#ifndef MSDHCP_h
#define MSDHCP_h

typedef struct MSDHCPContext{
	ms_bool flag_init;
	ms_bool flag_enable;
	ms_byte interfaces[128];
	ms_u32 lease_time_default;
	ms_u32 lease_time_max;
	ms_byte ipaddr[16];
	ms_byte netmask[16];
	ms_byte iprange[64];
	ms_byte option_routers[16];
	ms_byte option_subnetmask[16];
	ms_byte option_domainname[64];
	ms_byte option_domainname_servers[64];
}MSDHCPContext;

#ifndef MSIFCONFIG_C
extern ms_bool 
	msdhcp_api_init(ms_void);
extern ms_s08 
	msdhcp_api_set(MSDHCPContext* ms_in pmsdhcp_ctt,ms_u08 * ms_out  poutstr);
extern ms_void 
	msdhcp_api_buildJsonInfo(ms_void * jsnode_item);
extern ms_void 
	msdhcp_api_parseJsonInfo(ms_void * jsonroot,MSDHCPContext *pmsdhcpctt_db);
extern ms_void 
	msdhcp_api_webinfo(ms_string ms_out poutbuf);
#else
ms_void 
	msdhcp_api_buildJsonInfo(ms_void * jsnode_item);
ms_void 
	msdhcp_api_parseJsonInfo(ms_void * jsonroot,MSDHCPContext *pmsdhcpctt_db);
 #endif
 #endif

